Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/src/packages/next/pages/software/julia/[name].tsx
Views: 687
/*1* This file is part of CoCalc: Copyright © 2021 Sagemath, Inc.2* License: MS-RSL – see LICENSE.md for details3*/45import { Alert, Layout } from "antd";67import { SoftwareEnvNames } from "@cocalc/util/consts/software-envs";8import Footer from "components/landing/footer";9import Head from "components/landing/head";10import Header from "components/landing/header";11import Image from "components/landing/image";12import SoftwareLibraries from "components/landing/software-libraries";13import { Paragraph, Title } from "components/misc";14import A from "components/misc/A";15import { Customize, CustomizeType } from "lib/customize";16import { ExecutableDescription } from "lib/landing/render-envs";17import { withCustomizedAndSoftwareSpec } from "lib/landing/software-specs";18import {19ComputeComponents,20ComputeInventory,21SoftwareSpec,22} from "lib/landing/types";23import { STYLE_PAGE } from "..";24import screenshot from "/public/software/julia-jupyter.png";2526interface Props {27name: SoftwareEnvNames;28customize: CustomizeType;29spec: SoftwareSpec["julia"];30inventory: ComputeInventory["julia"];31components: ComputeComponents["julia"];32execInfo?: { [key: string]: string };33timestamp: string;34}3536export default function Julia(props: Props) {37const { name, customize, spec, inventory, components, execInfo, timestamp } =38props;3940function renderIntro() {41return (42<>43<div style={{ width: "50%", float: "right", padding: "0 0 15px 15px" }}>44<Image src={screenshot} alt="Using Julia in a Jupyter notebook" />45</div>46<Paragraph>47Julia is a fast modern compiled language that is{" "}48<A href="/features/julia">well supported</A> on CoCalc. This table49lists pre-installed <A href="https://julialang.org/">Julia</A>{" "}50libraries immediately available in every CoCalc project running on the51default "Ubuntu {name}" image. If something is missing, you can{" "}52<A href="https://doc.cocalc.com/howto/install-julia-package.html">53install additional libraries54</A>55, or request that we install them.56</Paragraph>57</>58);59}6061function renderInfoBox() {62return (63<Alert64style={{ margin: "15px 0" }}65message="Learn More"66description={67<span style={{ fontSize: "10pt" }}>68Learn more about{" "}69<strong>70<A href="/features/julia">Julia in CoCalc</A>71</strong>{" "}72and our{" "}73<strong>74<A href="https://doc.cocalc.com/howto/pluto.html">Pluto</A>75</strong>{" "}76and{" "}77<strong>78<A href="/features/jupyter-notebook">Jupyter</A>79</strong>{" "}80Notebook support.81</span>82}83type="info"84showIcon85/>86);87}8889return (90<Customize value={customize}>91<Head title="Julia Packages in CoCalc" />92<Layout>93<Header page="software" subPage="julia" softwareEnv={name} />94<Layout.Content95style={{96backgroundColor: "white",97}}98>99<div style={STYLE_PAGE}>100<Title style={{ textAlign: "center" }}>101Installed Julia Packages (Ubuntu {name})102</Title>103{renderIntro()}104{renderInfoBox()}105<ExecutableDescription spec={spec} execInfo={execInfo} />106<SoftwareLibraries107spec={spec}108inventory={inventory}109components={components}110libWidthPct={60}111timestamp={timestamp}112/>113</div>114<Footer />115</Layout.Content>{" "}116</Layout>117</Customize>118);119}120121export async function getServerSideProps(context) {122return await withCustomizedAndSoftwareSpec(context, "julia");123}124125126